<?php
/**
 * Created by PhpStorm.
 * User: Lin
 * Date: 2017/4/3 0003
 * Time: 下午 21:38
 */
Class RxRelationModel extends RelationModel{
    Protected $tableName='rx';
    Protected $_link=array(
        'member'=>array(
            'mapping_type'=>HAS_MANY,
            'foreign_key'=>'member_id',
        ),
        'goods'=>array(
            'mapping_type'=>BELONGS_TO,
            'foreign_key'=>'goods_id',
        ),
        'store'=>array(
            'mapping_type'=>BELONGS_TO,
            'foreign_key'=>'store_id',
        ),
    );
}